package com.bdqn.service;

import com.bdqn.mapper.CommentMapper;
import com.bdqn.pojo.Comment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements  CommentService {
    @Resource
    CommentMapper commentMapper;

    @Override
    public int add(Comment comment) {
        return commentMapper.add(comment);
    }

    @Override
    public Comment getComment(Long commentId) {
        return commentMapper.getComment(commentId);
    }

    @Override
    public List<Comment> commentList(Long roomTypeId) {
        return commentMapper.commentList(roomTypeId);
    }


}
